﻿namespace DCHealthCheck.MvcWeb.Classes.ViewModels {

    #region Usings
    using DCHealthCheck.Common;
    using DCHealthCheck.DomainModel;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading;
    using System.Web; 
    #endregion

    public class ErrorViewModel : BaseViewModel {

        public readonly WebErrorInfo PageError;

        public ErrorViewModel(WebErrorInfo pageError) {
            Global.DefaultLog.DebugFormat("[ThreadId: {0}] {1}", Thread.CurrentThread.ManagedThreadId, Extensions.CurrentMethodName());

            this.PageError = pageError;

            this.StartDate = DateTime.UtcNow;
            this.EndDate = DateTime.UtcNow;
        }
    }
}